package com.aaa.mapper.front;

import com.aaa.entity.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderMapper {

    /**
     * 查询客户订单
     * @return
     */
    List<Map<String,Object>> findSales();

    /**
     * 创建客户订单
     * @param sales
     * @return
     */
    int addSales(Sales sales);

    /**
     * 添加客户订单明细
     * @return
     */
    int addSalesDetails(SalesDetails salesDetails);

    /**
     * 进行支付，修改客户订单状态
     * @param sales
     * @return
     */
    int editOrderState(Sales sales);

    /**
     *根据购物车编号删除购物车明细
     * @param shoppingCartId
     * @return
     */
    int delShoppingCartDetail(int shoppingCartId);


}
